package cn.iocoder.yudao.module.peizhen.controller.admin.paitent.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 用户的陪诊病人 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PaitentRespVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "6235")
    @ExcelProperty("id")
    private Integer id;

    @Schema(description = "用户id", example = "24511")
    @ExcelProperty("用户id")
    private Integer memberId;

    @Schema(description = "是否满18周岁 1 是 2否")
    @ExcelProperty(value = "是否满18周岁 1 是 2否", converter = DictConvert.class)
    @DictFormat("peizhen_true_false") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer isAdult;

    @Schema(description = "姓名", example = "王五")
    @ExcelProperty("姓名")
    private String name;

    @Schema(description = "性别 0 男 1 女")
    @ExcelProperty(value = "性别 0 男 1 女", converter = DictConvert.class)
    @DictFormat("system_user_sex") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer sex;

    @Schema(description = "手机号")
    @ExcelProperty("手机号")
    private String phone;

    @Schema(description = "身份证号")
    @ExcelProperty("身份证号")
    private String cardNum;

    @Schema(description = "就诊人关系")
    @ExcelProperty("就诊人关系")
    private String relation;

    @Schema(description = "行动是否方便 1 是 2否")
    @ExcelProperty(value = "行动是否方便 1 是 2否", converter = DictConvert.class)
    @DictFormat("peizhen_true_false") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer isWalk;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}